package com.qf.mapper;

import com.qf.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//地址
@Mapper
public interface OrderMapper {
    /**
     * 添加订单
     * @param order
     * @return
     */
    public int addOrder(Order order);

    /**
     * 通过用户的id查询订单
     * @param u_id
     * @return
     */
    List<Order> selOrderByUId(@Param("u_id") int u_id);
}
